import request from '@/utils/request'

// // 获取评论列表
export const getCommentList = params => request.get('/api/web/comment', { params })
// // 添加
export const addComment = data => request.post('/api/web/comment', data)

// // 对评论点赞
export const addCommentLikings = data => request.post('/api/web/comment/liking', data)

// // 取消对文章点赞
export const deleteCommentLikings = id => request.delete(`/api/web/comment/liking/${id}`)

// // 获取当前用户点赞过的全部信息
export const getCommentLikingsList = () => request.get('/api/web/comment/liking')

// 获取用户评论列表 根据用户id
export const getUserComment = (id, params) => request.get(`/api/web/comment/userList/${id}`, { params })
